package org.vic.command.after;

/**
 * Created by VIC.Huang on 2016/9/8.
 */
public class Salesman {
    private String name;

    public Salesman(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void putDemand(ProductManage productManage) {
        System.out.println("业务员" + name + "提出新需求");
        productManage.receive(new Demand(productManage.chooseProgrammer()));
    }

    public void putBug(ProductManage productManage) {
        System.out.println("业务员" + name + "提出Bug");
        productManage.receive(new Bug(productManage.chooseProgrammer()));
    }

    public void putProblem(ProductManage productManage) {
        System.out.println("业务员" + name + "提出线上问题");
        productManage.receive(new Problem(productManage.chooseProgrammer()));
    }
}
